<?php
//Svetlana Gornostajeva Student 13, neljapaevati 17.15-21.15, 7.11.2011

include "funmath_kood.php";
$a = $_POST["a"];
$b = $_POST["b"];
$c = $_POST["c"];
fun_math ($a,$b,$c);
?>
<html>
<head>
<title>Fun Matemaatika</title>
</head>
<body bgcolor=#FFFFFF></body>
<p>
<br>
<form method="post" action="<?php echo $PHP_SELF;?>">
<table border=1>
    <tr>
        <td>a :</td>
        <td>
            <input type=text name=a maxlength=10 value=<?php echo $a ?>>
        </td>
    </tr>
<tr>
        <td>b :</td>
        <td>
            <input type=text name=b maxlength=10 value=<?php echo $b ?>>
        </td>
    </tr>
 <tr>
        <td>c :</td>
        <td>
            <input type=text name=c maxlength=10 value=<?php echo $c ?>>
        </td>
    </tr>
</table>       
 <input type=submit name=nupp value="Arvuta">
</form>
</html>
<?php

fun_math ($a,$b,$c);

?>
